<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <cpn><span slot="left">标题</span>
  </cpn>
  <cpn><button slot = 'center'>按钮</button></cpn>
</div>

<template id="cpn">
  <div>
    <slot name = 'left'>左边</slot>
    <slot name = 'center'>中间</slot>
    <slot name = 'right'>右边</slot>
  </div>

</template>
  <script src="../../../project_practice/lunbotu/vue.js"></script>
  <script>
    const app = new Vue({
      el:'#app',
      data:{
        message:"你好啊！！"
      },
      components:{
        cpn:{
          template:"#cpn",

        }
      }
    })
  </script>
</body>
</html>